<#if Session.user.rolekind==2>
<div id="div.auth.baseinfo.del">
<div id="waitting" STYLE=" position: absolute; width: 200; height: 49;top:50%;left:50%;margin:0px 0 0 -100px;"></div>
</div>

<script type="text/javascript">

var loadParentNode = function(){
	try {
		var request = new Request.JSON({
			url: '/data/sc.action',
			onComplete: function(json, text) {
				if (json.error.errorcode==0){
	 				 nodeinfo = json.recorders[0];
					 splitAuthContentPanel();
	 			}else{
	 				MUI.notification('<font color=red>错误：</font>无法取到父节点');
	 			}
			}
		}).get({"scid":"authtree_7","id":nodeinfo.pid });
	} catch (ex) {
		MUI.notification('<font color=red>错误：</font>访问失败('+ex.message+')');
	}
}


$('auth_del').set('disabled', true);
$('waitting').innerHTML = '<img src="images/spinner.gif" width="16px" height="16px">';
	try {
		var request = new Request.JSON({
			url: '/data/sc.action',
			onComplete: function(json, text) {
				if (json.error.errorcode==0){
	 				MUI.notification('删除成功！');
	 				MUI.updateContent({
						'element':  $('authTreePanel'),
						'url':      '/auth/auth.tree.action',
					});
					 //加载父节点信息
					 loadParentNode();
					$('auth_del').set('disabled', false);
	 			}else{
	 				MUI.notification('<font color=red>错误：</font>('+json.error.retstring+')');
	 				 $('auth_del').set('disabled', false);
	 				 $('waitting').innerHTML = '';
	 				 MUI.updateContent({
						'element':  $('authContentPanel'),
						'url':      '/auth/auth.baseinfo.action',
					});
	 			}
			}
		}).get({"scid":"authtree_4","id":nodeinfo.id,"kind":nodeinfo.kind });
	} catch (ex) {
		$('auth_del').set('disabled', false);
		MUI.notification('<font color=red>错误：</font>访问失败('+ex.message+')');
				
	}
</script>
<#else>
您无权访问该页面！
</#if>